home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / packagetool / sample package / htmlsample sources / aboutbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  4.4 KB  |  107 lines

  1. /*
  2.     File: AboutBox.h
  3.     
  4.     Description:
  5.         This file contains the routine prototypes for calls defined in AboutBox.c
  6.     These routines are used to manage the about box window displayed when
  7.     the user chooses 'About HTMLSample...' from the file menu.
  8.     
  9.     HTMLSample is an application illustrating how to use the new
  10.     HTMLRenderingLib services found in Mac OS 9. HTMLRenderingLib
  11.     is Apple's light-weight HTML rendering engine capable of
  12.     displaying HTML files.
  13.  
  14.     Copyright:
  15.         © Copyright 1999 Apple Computer, Inc. All rights reserved.
  16.     
  17.     Disclaimer:
  18.         IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  19.         ("Apple") in consideration of your agreement to the following terms, and your
  20.         use, installation, modification or redistribution of this Apple software
  21.         constitutes acceptance of these terms.  If you do not agree with these terms,
  22.         please do not use, install, modify or redistribute this Apple software.
  23.  
  24.         In consideration of your agreement to abide by the following terms, and subject
  25.         to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  26.         copyrights in this original Apple software (the "Apple Software"), to use,
  27.         reproduce, modify and redistribute the Apple Software, with or without
  28.         modifications, in source and/or binary forms; provided that if you redistribute
  29.         the Apple Software in its entirety and without modifications, you must retain
  30.         this notice and the following text and disclaimers in all such redistributions of
  31.         the Apple Software.  Neither the name, trademarks, service marks or logos of
  32.         Apple Computer, Inc. may be used to endorse or promote products derived from the
  33.         Apple Software without specific prior written permission from Apple.  Except as
  34.         expressly stated in this notice, no other rights or licenses, express or implied,
  35.         are granted by Apple herein, including but not limited to any patent rights that
  36.         may be infringed by your derivative works or by other works in which the Apple
  37.         Software may be incorporated.
  38.  
  39.         The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  40.         WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  41.         WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  42.         PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  43.         COMBINATION WITH YOUR PRODUCTS.
  44.  
  45.         IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  46.         CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  47.         GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  48.         ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  49.         OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  50.         (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  51.         ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  52.  
  53.     Change History (most recent first):
  54.         Wed, Dec 22, 1999 -- created
  55. */
  56.  
  57.  
  58.  
  59. #ifndef __ABOUTBOX__
  60. #define __ABOUTBOX__
  61.  
  62. #include <Types.h>
  63. #include <Windows.h>
  64.  
  65.  
  66. /* OpenAboutBox opens the about box window and returns
  67.     a pointer to the window in *aboutBox.  There can only
  68.     be one about box open at a time, so if the about box is
  69.     already open, then this routine brings it to the front
  70.     by calling SelectWindow before returning a pointer to
  71.     it. */
  72. OSStatus OpenAboutBox(WindowPtr *aboutBox);
  73.  
  74.  
  75. /* EnsureAboutBoxIsClosed closes the about box window
  76.     if it is open.  If it is not open then this routine does
  77.     nothing. */
  78. void EnsureAboutBoxIsClosed(void);
  79.  
  80.  
  81. /* AboutBoxUpdate should be called for update events
  82.     directed at the about box window.  It calls
  83.     BeginUpdate and EndUpdate and does all of the
  84.     drawing required to refresh the about box window. */
  85. void AboutBoxUpdate(WindowPtr aboutBox);
  86.  
  87.  
  88. /* AboutBoxActivate should be called for activate events
  89.     directed at the about box window. */
  90. void AboutBoxActivate(WindowPtr aboutBox, Boolean activate);
  91.  
  92.  
  93. /* AboutBoxCloseWindow closes the about box window. 
  94.     this routine deallocates any structures allocated
  95.     by the OpenAboutBox. */
  96. void AboutBoxCloseWindow(WindowPtr aboutBox);
  97.  
  98.  
  99. /* IsAboutBox returns true if the window pointer
  100.     in the aboutBox parameter is not NULL and
  101.     points to the about box. */
  102. Boolean IsAboutBox(WindowPtr aboutBox);
  103.  
  104.  
  105. #endif
  106.  
  107.